//
//  StoreDetailEvaluationHeader.h
//  BaseProject
//
//  Created by 王洋 on 2020/7/2.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "StoreDetailEvaluateModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface StoreDetailEvaluationHeader : UITableViewHeaderFooterView

@property (weak, nonatomic) IBOutlet UIImageView *userIcon;

@property (weak, nonatomic) IBOutlet UILabel *userName;

@property (weak, nonatomic) IBOutlet UILabel *evaluationTime;

@property (weak, nonatomic) IBOutlet UILabel *evaluationContent;

@property (weak, nonatomic) IBOutlet UILabel *starLab;

@property (weak, nonatomic) IBOutlet UICollectionView *collectionview;


//套餐相关信息

@property (weak, nonatomic) IBOutlet UIView *packageBGView;
@property (weak, nonatomic) IBOutlet UIImageView *packageMainPhoto;
@property (weak, nonatomic) IBOutlet UILabel *packageMainTitle;
@property (weak, nonatomic) IBOutlet UILabel *packagePrice;
@property (weak, nonatomic) IBOutlet UILabel *packageBeforePrice;

//点赞按钮
@property (weak, nonatomic) IBOutlet UIButton *thumbBtn;


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *infoHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *evaluateTextHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *collectionViewHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *packageHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *thumbHeight;

@property (nonatomic, strong) StoreDetailEvaluateModel *model;


- (void)fillHeadWithModel:(StoreDetailEvaluateModel *)model;

+ (CGFloat)calculateHeightWithModel:(StoreDetailEvaluateModel *)model;

@end

NS_ASSUME_NONNULL_END
